package com.ch.client.openApi.factory;

import com.ch.client.openApi.service.ApiService;
import feign.Response;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author CH
 * @data 2021/12/23
 */
@Component
public class ApiServiceFactory implements FallbackFactory<ApiService> {
    @Override
    public ApiService create(Throwable cause) {
        return new ApiService() {
            @Override
            public Integer d1() {
                return null;
            }

            @Override
            public Integer d2() {
                return null;
            }

            @Override
            public Integer d3() {
                return null;
            }

            @Override
            public Response d4() {
                return null;
            }
        };
    }
}
